package com.shengyin.ec.model.dao.order;

import java.util.List;

import com.shengyin.ec.model.dao.BaseDao;
import com.shengyin.ec.model.entity.Orders;

public interface OrderDao extends BaseDao<Orders> {

	
	
	public String generateOrderId();
	
	public void deleteSelectedGoods(Long[] ids);
	
	public void updateState(Orders order);
	
	public void deleteRelateOrder(String orderId);
	
	public List<Orders> getOrdersByUserId(long id); 
	
	//orders about cluster
    public List<Orders> getClusterCompanyOrdersList(long clusterCompanyid,int offset,int pageSize);
	
	public List<Orders> getClusterCompanyOrdersList(long clusterCompanyid);
	
    public List<Orders> getOrderByOrderId(String orderId,int offset,int pageSize);
	
	public List<Orders> getOrderByOrderId(String orderId);
	
    public List<Orders> getOrderByStat(String[] paramValues,int offset,int pageSize);
	
	public List<Orders> getOrderByStat(String[] paramValues);
	
    public List<Orders> getOrderByDate(String[] paramValues,int offset,int pageSize);
	
	public List<Orders> getOrderByDate(String[] paramValues);
	
	//orders about shengyin
    public List<Orders> getAllOrder(int type,int offset,int pageSize);
	
	public List<Orders> getAllOrder(int type);
	
    public List<Orders> getOrderByStat(String orderStat,int offset,int pageSize);
	
	public List<Orders> getOrderByStat(String orderStat);
	
    public List<Orders> getOrderByDate(String date,int offset ,int pageSize);
	
	public List<Orders> getOrderByDate(String date);
}
